  -- Mechano-Lord Capacitus --
function spell0_19219(pUnit, Event) --@Berserk,n/a--
pUnit:FullCastSpellOnTarget(26662,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19219', 814, 1)
end
function spell1_19219(pUnit, Event) --@Head Crack,n/a--
pUnit:FullCastSpellOnTarget(35161,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19219', 15414, 1)
end
function spell2_19219(pUnit, Event) --@Polarity Shift,n/a--
pUnit:FullCastSpellOnTarget(39096,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19219', 3000, 1)
end
function spell3_19219(pUnit, Event) --@Reflective Damage Shield,n/a--
pUnit:FullCastSpellOnTarget(35159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19219', 11600, 1)
end
function spell4_19219(pUnit, Event) --@Reflective Magic Shield,n/a--
pUnit:FullCastSpellOnTarget(35158,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19219', 11600, 1)
end
function Sorts_19219(pUnit, Event)
choix_sorts_19219 = math.random(0, 4)
if choix_sorts_19219 == 0 then
pUnit:RegisterEvent('spell0_19219', 1, 1)
end
if choix_sorts_19219 == 1 then
pUnit:RegisterEvent('spell1_19219', 1, 1)
end
if choix_sorts_19219 == 2 then
pUnit:RegisterEvent('spell2_19219', 1, 1)
end
if choix_sorts_19219 == 3 then
pUnit:RegisterEvent('spell3_19219', 1, 1)
end
if choix_sorts_19219 == 4 then
pUnit:RegisterEvent('spell4_19219', 1, 1)
end
end
function mob19219_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19219', math.random(1500, 3000), 1)
end
function mob19219_Leave(pUnit, Event)
end
function mob19219_Kill(pUnit, Event)
end
function mob19219_Die(pUnit, Event)
pUnit:RemoveEvents();
end
RegisterUnitEvent(19219, 1, 'mob19219_Action')
RegisterUnitEvent(19219, 2, 'mob19219_Leave')
RegisterUnitEvent(19219, 3, 'mob19219_Kill')
RegisterUnitEvent(19219, 4, 'mob19219_Die')
